export default {
  gridRowActiveMode: 1,
  enableRowEdit: true,
  rowEditDefault: true,
  xdataControlName: 'grid',
  loadDefault: true,
  deviewCodeName: 'global_flow_grid_view',
  deviewId: '8fe6dc2c5f44800bd2d9dc1cbf480659',
  accUserMode: 2,
  caption: '全部规则',
  codeName: 'psde_logic_global_flow_grid_view',
  appDataEntityId: 'web.psdelogic',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'GridView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        newDataAppView: {
          refAppViewId: 'web.psde_logic_edit_view',
        },
        appUILogicRefViews: [
          {
            refAppViewId: 'web.psde_logic_edit_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        openDataAppView: {
          openMode: 'POPUPMODAL',
          refAppViewId: 'web.psde_logic_flow_main_view',
        },
        editMode: true,
        appUILogicRefViews: [
          {
            openMode: 'POPUPMODAL',
            refAppViewId: 'web.psde_logic_flow_main_view',
          },
        ],
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewNavContexts: [
    {
      rawValue: true,
      key: 'PSDEID',
      value: 'base.common_flow',
      name: 'PSDEID',
      id: 'psdeid',
    },
  ],
  appViewNavParams: [
    {
      rawValue: true,
      key: 'n_psdeid_eq',
      value: 'base.common_flow',
      id: 'n_psdeid_eq',
    },
    {
      rawValue: true,
      key: 'n_dynamodelflag_eq',
      value: '1',
      id: 'n_dynamodelflag_eq',
    },
  ],
  appViewRefs: [
    {
      realOpenMode: 'POPUPMODAL',
      realTitle: '自动化规则',
      refAppViewId: 'web.psde_logic_flow_main_view',
      name: 'EDITDATA',
      id: 'editdata',
    },
    {
      realTitle: '实体处理逻辑编辑视图',
      refAppViewId: 'web.psde_logic_edit_view',
      name: 'NEWDATA',
      id: 'newdata',
    },
  ],
  controls: [
    {
      detoolbarItems: [
        {
          actionLevel: 100,
          detoolbarItems: [
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'create_auto_flow@psdelogic',
              uiactionTarget: 'NONE',
              valid: true,
              caption: '自动化规则',
              itemType: 'DEUIACTION',
              tooltip: '自动化规则',
              showCaption: true,
              showIcon: true,
              id: 'deuiaction1',
            },
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'create_schedule_flow@psdelogic',
              uiactionTarget: 'NONE',
              valid: true,
              caption: '计划规则',
              itemType: 'DEUIACTION',
              tooltip: '计划规则',
              showCaption: true,
              showIcon: true,
              id: 'deuiaction2',
            },
          ],
          valid: true,
          caption: '新建规则',
          itemType: 'ITEMS',
          sysImage: {
            cssClass: 'fa fa-plus',
            glyph: 'xf067@FontAwesome',
          },
          tooltip: '新建规则',
          showCaption: true,
          showIcon: true,
          id: 'items1',
        },
      ],
      xdataControlName: 'grid',
      codeName: 'global_flow_grid_view_toolbar',
      controlType: 'TOOLBAR',
      logicName: '自动化规则逻辑表格视图_工具栏',
      appDataEntityId: 'web.psdelogic',
      controlParam: {
        id: 'toolbar',
      },
      modelId: '1fa77497c4df98ee205ec259309b0a23',
      modelType: 'PSDETOOLBAR',
      name: 'toolbar',
      id: 'global_flow_grid_view_toolbar',
    },
    {
      aggMode: 'NONE',
      columnEnableFilter: 2,
      columnEnableLink: 2,
      groupMode: 'NONE',
      groupStyle: 'DEFAULT',
      orderValueAppDEFieldId: 'ordervalue',
      degridColumns: [
        {
          clconvertMode: 'NONE',
          dataItemName: 'psdelogicname',
          excelCaption: '名称',
          appDEFieldId: 'psdelogicname',
          deuiactionGroup: {
            uiactionGroupDetails: [
              {
                actionLevel: 200,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                detailType: 'DEUIACTION',
                uiactionId: 'apply@psdelogic',
                tooltip: '应用此规则',
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-arrow-circle-o-right',
                  glyph: 'xf18e@FontAwesome',
                },
                id: 'u3715cc4',
              },
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                caption: '编辑',
                detailType: 'DEUIACTION',
                uiactionId: 'open_quick_cfg_view@psdelogic',
                showCaption: true,
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-edit',
                  glyph: 'xf044@FontAwesome',
                },
                id: 'uc1356a2',
              },
              {
                actionLevel: 100,
                afterItemType: 'NONE',
                beforeItemType: 'NONE',
                buttonStyle: 'DEFAULT',
                capLanguageRes: {
                  lanResTag: 'TBB.TEXT.*.REMOVE',
                },
                caption: '删除',
                detailType: 'DEUIACTION',
                uiactionId: 'gridview_removeaction',
                tooltipLanguageRes: {
                  lanResTag: 'TBB.TOOLTIP.*.REMOVE',
                },
                showCaption: true,
                showIcon: true,
                sysImage: {
                  cssClass: 'fa fa-remove',
                  glyph: 'xf00d@FontAwesome',
                },
                id: 'u043ffc0',
              },
            ],
            appDataEntityId: 'web.psdelogic',
            uniqueTag: 'PSDELogic__Usr0118075954',
            name: '自动化规则表格列行为组',
            id: 'usr0118075954',
          },
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '名称',
          codeName: 'psdelogicname',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 250,
          widthUnit: 'STAR',
          enableSort: true,
          id: 'psdelogicname',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'logicsubtype',
          excelCaption: '类型',
          appCodeListId: 'web.extension__delogicsubtype',
          appDEFieldId: 'logicsubtype',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '类型',
          codeName: 'logicsubtype',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 150,
          widthUnit: 'PX',
          enableSort: true,
          id: 'logicsubtype',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'validflag',
          excelCaption: '启用',
          appCodeListId: 'web.yesno',
          appDEFieldId: 'validflag',
          valueType: 'SIMPLE',
          enableRowEdit: true,
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '启用',
          codeName: 'validflag',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 100,
          widthUnit: 'PX',
          enableSort: true,
          id: 'validflag',
        },
        {
          clconvertMode: 'FRONT',
          dataItemName: 'applyflag',
          excelCaption: '状态',
          appCodeListId: 'web.extension__extension_status',
          appDEFieldId: 'applyflag',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '状态',
          codeName: 'applyflag',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 100,
          widthUnit: 'PX',
          enableSort: true,
          id: 'applyflag',
        },
        {
          clconvertMode: 'NONE',
          dataItemName: 'createdate',
          excelCaption: '建立时间',
          appDEFieldId: 'createdate',
          valueFormat: 'YYYY-MM-DD HH:mm:ss',
          valueType: 'SIMPLE',
          aggMode: 'NONE',
          align: 'LEFT',
          caption: '建立时间',
          codeName: 'createdate',
          columnType: 'DEFGRIDCOLUMN',
          noPrivDisplayMode: 1,
          width: 200,
          widthUnit: 'PX',
          enableSort: true,
          id: 'createdate',
        },
      ],
      degridDataItems: [
        {
          appDEFieldId: 'psdelogicname',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'psdelogicname',
        },
        {
          appDEFieldId: 'logicsubtype',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'logicsubtype',
        },
        {
          appDEFieldId: 'validflag',
          valueType: 'SIMPLE',
          dataType: 9,
          id: 'validflag',
        },
        {
          appDEFieldId: 'applyflag',
          valueType: 'SIMPLE',
          dataType: 9,
          id: 'applyflag',
        },
        {
          format: 'YYYY-MM-DD HH:mm:ss',
          appDEFieldId: 'createdate',
          valueType: 'SIMPLE',
          dataType: 5,
          id: 'createdate',
        },
        {
          appDEFieldId: 'events',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'events',
        },
        {
          appDEFieldId: 'createman',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'createman',
        },
        {
          appDEFieldId: 'updateman',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'updateman',
        },
        {
          format: 'YYYY-MM-DD HH:mm:ss',
          appDEFieldId: 'updatedate',
          valueType: 'SIMPLE',
          dataType: 5,
          id: 'updatedate',
        },
        {
          appDEFieldId: 'psdelogicid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfkey',
        },
        {
          appDEFieldId: 'psdelogicid',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfdataaccaction',
        },
        {
          appDEFieldId: 'psdelogicname',
          valueType: 'SIMPLE',
          dataType: 25,
          id: 'srfmajortext',
        },
      ],
      degridEditItems: [
        {
          caption: '启用',
          codeName: 'validflag',
          enableCond: 3,
          appDEFieldId: 'validflag',
          editor: {
            editorType: 'SWITCH',
            valueType: 'SIMPLE',
            editable: true,
            id: 'validflag',
          },
          allowEmpty: true,
          id: 'validflag',
        },
        {
          caption: '实体处理逻辑标识',
          codeName: 'srfkey',
          enableCond: 3,
          appDEFieldId: 'psdelogicid',
          editor: {
            editorType: 'HIDDEN',
            valueType: 'SIMPLE',
            editable: true,
            id: 'srfkey',
          },
          allowEmpty: true,
          id: 'srfkey',
        },
      ],
      pagingMode: 1,
      pagingSize: 20,
      sortMode: 'REMOTE',
      enableCustomized: true,
      enablePagingBar: true,
      enableRowEdit: true,
      singleSelect: true,
      navViewPos: 'NONE',
      createControlAction: {
        appDEMethodId: 'create',
        appDataEntityId: 'web.psdelogic',
        id: 'create',
      },
      fetchControlAction: {
        appDEMethodId: 'fetchdefault',
        appDataEntityId: 'web.psdelogic',
        id: 'fetch',
      },
      getDraftControlAction: {
        appDEMethodId: 'getdraft',
        appDataEntityId: 'web.psdelogic',
        id: 'loaddraft',
      },
      getControlAction: {
        appDEMethodId: 'get',
        appDataEntityId: 'web.psdelogic',
        id: 'load',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.psdelogic',
        id: 'remove',
      },
      updateControlAction: {
        appDEMethodId: 'update',
        appDataEntityId: 'web.psdelogic',
        id: 'update',
      },
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'flow_grid_view_grid',
      controlType: 'GRID',
      logicName: '自动化规则逻辑表格视图_表格',
      appDataEntityId: 'web.psdelogic',
      controlLogics: [
        {
          eventNames: 'onSaveSuccess',
          logicTag: 'grid',
          logicType: 'APPDEUIACTION',
          appDEUIActionId: 'gridview_refreshaction',
          triggerType: 'CTRLEVENT',
          id: 'refresh',
        },
      ],
      controlParam: {
        ctrlParams: {
          EDITSHOWMODE: 'cell',
        },
        id: 'grid',
      },
      modelId: 'eb868b0671ad0861a3293f856c9830c1',
      modelType: 'PSDEGRID',
      name: 'grid',
      id: 'web.psdelogic.flow_grid_view_grid',
    },
    {
      searchButtonStyle: 'DEFAULT',
      deformPages: [
        {
          layout: {
            columnCount: 24,
            layout: 'TABLE_24COL',
          },
          caption: '常规条件',
          codeName: 'formpage1',
          detailStyle: 'DEFAULT',
          detailType: 'FORMPAGE',
          id: 'formpage1',
        },
      ],
      layout: {
        columnCount: 24,
        layout: 'TABLE_24COL',
      },
      tabHeaderPos: 'TOP',
      noTabHeader: true,
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'flow_grid_view_search_form',
      controlType: 'SEARCHFORM',
      logicName: '自动化规则逻辑表格视图_搜索表单',
      appDataEntityId: 'web.psdelogic',
      controlParam: {
        id: 'searchform',
      },
      modelId: '7ba4a133f64037d9976896af38072334',
      modelType: 'PSDEFORM_SEARCHFORM',
      name: 'searchform',
      id: 'web.psdelogic.flow_grid_view_search_form',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.psdelogic',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      caption: '全部规则',
      codeName: 'global_flow_grid_view_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.psdelogic',
      controlParam: {},
      name: 'captionbar',
      id: 'global_flow_grid_view_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEGRIDVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.psdelogic',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '自动化规则',
  viewStyle: 'DEFAULT',
  viewType: 'DEGRIDVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: 'cc237f0766d2fc7a2be81807167c2c9d',
  modelType: 'PSAPPDEVIEW',
  name: 'PSDELogicglobal_flow_grid_view',
  id: 'web.psde_logic_global_flow_grid_view',
};
